package com.snake.excel2java.excel.generator;

import com.snake.excel2java.excel.generator.file.Excel2007Creator;
import com.snake.excel2java.excel.generator.file.GlobalCreator;
import com.snake.excel2java.excel.generator.file.TypeCreator;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
@NoArgsConstructor
public class ExcelGenerator {

    @Autowired
    Excel2007Creator excel2007Creator;
    @Autowired
    GlobalCreator globalCreator;
    @Autowired
    TypeCreator typeCreator;

    public void generate() {
        excel2007Creator.generate();
        globalCreator.generate();
        typeCreator.generate();
    }
}
